package com.power.using.mydaggerp.contract.home.tabs;

import com.power.using.mydaggerp.model.bean.weixin.WeixinChoiceItemBean;
import com.power.using.mydaggerp.model.bean.weixin.WeixinChoiceListBean;

import io.reactivex.Observable;

/**
 * Created by 聪明一只哈 on 2019/10/11.
 * Time: 2019/10/11  15:48
 */
public interface WeixinContract {

    abstract class WeixinPresenter extends BaseTabsContract.BaseTabsPresenter<IWeixinModel,IWeixinView,WeixinChoiceItemBean>{

    }



    interface IWeixinModel extends BaseTabsContract.IBaseTabsModel{

        /**
         * 获取微信精选
         * @param page      指定微信精选页数->空的话默认1
         * @param pageStrip 每页显示条数->空的话默认20条
         * @param dttype    返回数据的格式,xml或json，空的话->默认json
         * @param key       聚合key
         * @return
         */
        Observable<WeixinChoiceListBean> getWeixinChoiceList(int page,int pageStrip,
                                                             String dttype,String key);
    }



    interface IWeixinView extends BaseTabsContract.IBaseTabsView<WeixinChoiceItemBean>{

    }
}
